﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<head>
</head>
<body>
	<!-- 引用头部样式 -->
	<jsp:include page="header.jsp"></jsp:include>

	<!-- 新闻详情 -->
	<div>
		<header class="header-article-list">
			<div class="article-position">
				<a href="NewsServlet?method=toArticleListContent&id=${news.id-1 }">
					<span>上一篇</span> <span>${news.title }</span>
				</a>
			</div>
			<ul>
				<c:forEach items="${newsType }" var="type">
					<li><a
						href="NewsServlet?method=getNewsByType&typeId=${type.id }">${type.name }</a></li>
				</c:forEach>
			</ul>
			<div class="article-more-btn">
				<span>${news.title }</span> <a
					href="NewsServlet?method=toArticleListContent&id=${news.id+1 }">
					<span>下一篇</span>
				</a>
			</div>
		</header>
		<section class="article-content">
			<h4>${news.title }</h4>
			<main> ${news.content } </main>
		</section>
	</div>
	<!-- 新闻详情end -->

	<!-- 引用底部样式 -->
	<jsp:include page="footer.jsp"></jsp:include>
	﻿

</body>
</html>